<!doctype html>
<html lang="en">

<head>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <%include("/app/resapi/style.html"){}%>
    <link rel="icon" href="/otherassets/images/favicon.png">
    <link rel="stylesheet" href="/otherassets/css/style.css">
    <link rel="stylesheet" href="/otherassets/css/night-mode.css">
    <link rel="stylesheet" href="/otherassets/css/uikit.min.css">
    <link rel="stylesheet" href="/otherassets/css/icons.css">
    <link href="/otherassets/css/css.css" rel="stylesheet">
</head>
<body style="overflow: auto;">

<!-- Wrapper -->
<div id="wrapper" class="sidebar-out">

    <!-- sidebar -->
    <div class="main_sidebar">
        <div class="side-overlay" uk-toggle="target: #wrapper ; cls: collapse-sidebar mobile-visible"></div>

        <!-- sidebar header -->
        <div class="sidebar-header">
            <h4> 导航</h4>
            <span class="btn-close" uk-toggle="target: #wrapper ; cls: collapse-sidebar mobile-visible"></span>
        </div>

        <!-- sidebar Menu -->
        <div class="sidebar">
            <div class="sidebar_innr" data-simplebar>
                <div class="sections">
                    <h3> 浏览... </h3>
                    <ul>
                        <li class="active"><a href="/app/core/party/album/index"> <i class="uil-home-alt"></i> <span> 专辑首页 </span> </a></li>
                        <li><a href="/app/core/party/album/singleother?view=channals">
                            <i class="uil-users-alt"></i> <span> 关注人员 </span> </a></li>
                        <li><a href="/app/core/party/album/singleother?view=catagroies"> <i class="uil-layers"></i> <span> 类别</span> </a></li>
                        <li><a href="/app/core/party/album/singleother?view=history"> <i class="uil-history"></i> <span> 历史记录 </span> </a></li>
                    </ul>
                </div>
                <div class="sections">
                    <h3> 我关注的 </h3>
                    <ul id="mySubscribeUserList">
                    </ul>
                    <!-- view more subcription-->
                    <div class="uk-flex uk-flex-center mb-3">
                        <a href="browse-channals.html" class="button default circle px-5">
                            <i class="uil-plus mr-2"></i>更多订阅</a>
                    </div>
                </div>

                <div id="foot">
                    <div class="foot-content">
                        <p>© 2020 <strong>${session.UNIT.orgName}</strong>. All Rights Reserved. </p>
                    </div>

                </div>
            </div>
        </div>
    </div>

    <!-- header -->
    <div id="main_header" class="uk-light bg-dark">
        <header>

            <!-- Logo-->
            <i class="header-traiger uil-bars"
               uk-toggle="target: #wrapper ; cls: collapse-sidebar mobile-visible"></i>

            <!-- Logo-->
            <div id="logo">
                <a href="#"> <img src="/sys/file/getBannerImg?fileName=${logoPic}" alt=""></a>
                <a href="#"> <img src="/sys/file/getBannerImg?fileName=${logoPic}" class="logo-inverse" alt=""></a>
            </div>


            <!-- user icons -->
        </header>

    </div>

    <!-- contents -->
    <div class="main_content content-expand">
        <div class="main_content_inner">


            <div uk-grid>
                <div class="uk-width-2-3@m">

                    <div id="video-box" uk-sticky="top: 400 ;media : @s"
                         cls-active="video-resized uk-animation-slide-right;">
                            <span class="icon-feather-x btn-box-close"
                                  uk-toggle="target: #video-box ; cls: video-resized-hedden uk-animation-slide-left"></span>

                        <div class="embed-video">
                            <video controls style="object-fit:contain;" id="videoEl">
                                <source src="/sys/file/getFileDown?attachId=${parameter.attachId}" type="video/mp4">
                            </video>
                        </div>
                    </div>

                    <div class="video-info mt-3">

                        <!-- video title -->
                        <div class="video-info-title">
                            <h1 id="videoTitle"></h1>
                        </div>

                        <div class="uk-flex uk-flex-between">

                            <div class="video-info-details">
                                <span id="clickCount"></span>
                            </div>
                        </div>


                        <div class="uk-flex uk-flex-between uk-flex-middle" uk-grid>
                            <div class="user-details-card uk-width-expand">
                                <a href="single-channal.html" class="uk-flex">
                                    <div class="user-details-card-avatar">
                                        <img src="" id="createUserHeadImg" alt="">
                                    </div>
                                    <div class="user-details-card-name">
                                        <span id="createUserName"></span> <span id="lastSendTime"></span>
                                    </div>
                                </a>
                            </div>
                            <div class="uk-width-auto uk-flex">
                                <a href="#" class="button primary js-video-create-user" style="color: white !important;"> <i class="icon-feather-plus"></i>关注</a>
                            </div>
                        </div>

                        <hr class="mt-0 mb-2">


                        <h3>内容摘要</h3>
                        <p id="subheading"></p>

                    </div>

                    <hr>

                    <div class="comments mt-4">
                        <h3> 评论列表</h3>
                        <ul id="commentsList">

                        </ul>
                    </div>

                    <div class="comments">
                        <h4>您的评论 </h4>
                        <ul>
                            <li>
                                <div class="avatar"><img src="/sys/file/getHeadImg" onerror="this.onerror=null;this.src='/assets/img/avatars/adam-jansen.jpg'" alt="">
                                </div>
                                <div class="comment-content">
                                    <form class="uk-grid-small" uk-grid>
                                        <div class="uk-width-1-1@s">
                                            <label class="uk-form-label">评论</label>
                                            <textarea class="uk-textarea" placeholder="请把您的评论填写在此处..." style=" height:160px" id="remark"></textarea>
                                        </div>
                                        <div class="uk-grid-margin">
                                            <input type="button" value="提交" class="button primary js-sendComm" style="color: white !important;">
                                        </div>
                                    </form>

                                </div>
                            </li>
                        </ul>
                    </div>


                </div>
                <div class="uk-width-expand@m">

                    <div class="uk-flex uk-flex-middle uk-flex-between px-1 pb-3">
                        <p class="mb-0 uk-h5"> 最近10条 </p>
                    </div>
                    <div class="video-list-small uk-child-width-1-1@m uk-child-width-1-2@s" id="lastvideolist" uk-grid>
                    </div>
                </div>
            </div>

            <!-- footer
           ================================================== -->
            <div class="footer">
                <div class="uk-grid-collapse" uk-grid>
                    <div class="uk-width-expand@s uk-first-column">
                        <p>© 2020 <strong>${session.UNIT.orgName}</strong>. All Rights Reserved. </p>
                    </div>
                    <div class="uk-width-auto@s">
                        <nav class="footer-nav-icon">
                            <ul>
                                <li><a href="#"></a></li>
                                <li><a href="#"></a></li>
                                <li><a href="#"></a></li>
                                <li><a href="#"></a></li>
                            </ul>
                        </nav>
                    </div>
                </div>
            </div>


        </div>
    </div>

</div>

<!-- For Night mode -->
<script>
    (function (window, document, undefined) {
        'use strict';
        if (!('localStorage' in window)) return;
        var nightMode = localStorage.getItem('gmtNightMode');
        if (nightMode) {
            document.documentElement.className += ' night-mode';
        }
    })(window, document);


    (function (window, document, undefined) {

        'use strict';

        // Feature test
        if (!('localStorage' in window)) return;

        // Get our newly insert toggle
        var nightMode = document.querySelector('#night-mode');
        if (!nightMode) return;

        // When clicked, toggle night mode on or off
        nightMode.addEventListener('click', function (event) {
            event.preventDefault();
            document.documentElement.classList.toggle('night-mode');
            if (document.documentElement.classList.contains('night-mode')) {
                localStorage.setItem('gmtNightMode', true);
                return;
            }
            localStorage.removeItem('gmtNightMode');
        }, false);
    })(window, document);
</script>

<script type="text/javascript">
    var attachId = "${parameter.attachId}";
    var videoId = "${parameter.videoId}";
</script>
<%include("/app/resapi/sysjs.html"){}%>
<script src="/otherassets/js/uikit.min.js"></script>
<script src="/otherassets/js/jquery-3.3.1.min.js"></script>
<script src="/otherassets/js/simplebar.js"></script>
<script src="/otherassets/js/main.js"></script>
<script src="/gobal/js/page/party/album/single-video.js"></script>

</body>

</html>
